<?php
namespace App\Models;
use App\Models\Simple\XMLModel;

class Players extends XMLModel
{
    //mock data : an array of records
    protected $origin = WRITEPATH . 'data/playersData.xml';

    protected $keyField = 'id';
    protected $validationRules = [
        'name' => 'required|min_length[3]||max_length[255]',
        'description' => 'required',
        'link' => 'required|valid_url_strict',
    ];        
}